/**
 * 
 */
package ua.kpi.javatrainee6.model.assessment;

import ua.kpi.javatrainee6.model.curriculum.Subject;

/**
 * Assessment entity, contains mark and subject fields
 */
public final class Assessment {
	
	private Subject subject;
	private Mark mark;
	
	/**
	 * Setting assessment features
	 * @param subject - contains subject title and professor
	 * @param mark - enum class with 2 type of mark representation
	 */
	public Assessment(Subject subject, Mark mark) {
		this.subject = subject;
		this.mark = mark;
	}
	
	/**
	 * @return - Mark class, needed for calculation of average student mark
	 */
	public Mark getMark() {
		return mark;
	}
	
	@Override
	public String toString() {
		return String.format("%s - %s", subject, mark);
	}
	
	public Subject getSubject() {
		return subject;
	}
}

